package dao;

import java.io.File;

import bean.AnnouncementBean;

/**
 * Class responsible for the operations of Announcement
 */ 
public class AnnouncementDAO extends AbstractDAO<AnnouncementBean>{

	private static final File DB = new File("./AnnouncementDB.xml");
	private static AnnouncementDAO instance;

	private AnnouncementDAO(){	}


	/**
	 * Singleton 
	 * Return instance of BlogDAO
	 * @return instance of BlogDAO
	 */
	public static synchronized AnnouncementDAO getInstance(){
		if(instance == null)
			instance = new AnnouncementDAO();

		return instance;
	}

	@Override
	protected File getDBFileName() {
		return DB;
	}

}

